let d = new Date()
let w = d.getDay()
if (w == 0) {
    console.log('星期日')
} else if (w === 1) {
    console.log('星期一')
} else if (w === 2) {
    console.log('星期二')
} else if (w === 3) {
    console.log('星期三')
} else if (w === 4) {
    console.log('星期四')
} else if (w === 5) {
    console.log('星期五')
} else{
    console.log('星期六')
}
console.log(d.getDay());
